#ifndef STOMPERMODEL_H
#define STOMPERMODEL_H
#include "PatchStomper/TextureFileInfo.h"
#include "StompedReality/Math/Vector2.h"
#include "StomperLib/Export/Exporter.h"
#include "StomperLib/Objects/EditorObjectList.h"
#include "StomperLib/ToolModel.h"
#include <Gwen/Controls/Base.h>
#include <Gwen/Events.h>
static const int RectPatchMode = 0x200 | SelectMode;
static const int GridClickAddPatchMode = 0x400 | SelectMode;
static const int DeletePatchMode = 0x600 | DeleteMode;

namespace PatchStomper
{

class StomperModel : public StomperLib::ToolModel
{
 public:

  StomperModel( Gwen::Controls::Base* base );
  virtual ~StomperModel( );

 public:

  void Clear( );

  bool Add( StompedReality::Math::Vector2 pos, StompedReality::Math::Vector2 size );

 public:

  bool GridActive;
  StompedReality::Math::Vector2 TextureSize;
  unsigned NextPatchID;
  unsigned NextTextureID;
  int NextSuffix;
  PatchStomper::TextureFileInfo* CurrentTextureInfo;

 private:

  //StomperLib::Export::ExportItemMap m_ExportTextureMap;

};

}
#endif // ifndef STOMPERMODEL_H